<template>
	<view>
		<view class="goods" v-for="(item, index) in 10" :key="index">
			<view class="img">
				<image class="img"
					src="https://img.js.design/assets/img/668c9ee084a543139ecb06cb.jpg#4daecb55af26b59c4ba5893a9ca94283"
					mode=""></image>
				<div class="giveaway">
					赠品
				</div>
			</view>
			<view class="info">
				<view class="tinfo">
					<view class="t">
						商品名称
					</view>
				</view>
				<view class="binfo">
					<view class="">
						配送数量：5
					</view>
					<view class="" style="margin-top: 15rpx;">
						配送时间：2024-02-02
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			};
		}
	}
</script>

<style lang="scss" scoped>
	.goods {
		display: flex;
		align-items: center;
		margin-bottom: 21.5rpx;
		background-color: #FFF;
		border-radius: 10rpx;
		padding: 39rpx 35rpx;
		box-sizing: border-box;
		.info {
			height: 180rpx;
			display: flex;
			flex-direction: column;
			justify-content: space-between;
			.binfo {
				font-size: 24rpx;
				color: #2F2F2F;
				font-weight: 400;
				opacity: 0.6;
			}

			.t {
				font-size: 26rpx;
				font-weight: 400;
				color: #1E1E1E;
			}
		}

		.img {
			width: 180rpx;
			height: 180rpx;
			border-radius: 10rpx;
			margin-right: 20rpx;
			position: relative;
			.giveaway {
				position: absolute;
				top: 0;
				left: 0;
				background-color: #F3060D;
				font-size: 20rpx;
				color: #FFF;
				border-radius: 10rpx 0 10rpx 0;
				padding: 5rpx 10rpx;
			}
		}
	}
</style>

<style lang="scss">
	page {
		background-color: #F4F6F6;
		padding: 20rpx;
		box-sizing: border-box;
	}
</style>